import { Component, OnInit } from '@angular/core';
import FlowGraph from '../../graph/index'
import graphData from './detailsData'

@Component({
  selector: 'app-substation-details',
  templateUrl: './substation-details.component.html',
  styleUrls: ['./substation-details.component.less']
})
export class SubstationDetailsComponent implements OnInit {
  public switch: boolean = true
  constructor() { }

  ngOnInit(): void {
    
    FlowGraph.init()
    FlowGraph.initGraphShape(graphData)
  }

  toggleSwitch(): void {
    this.switch = !this.switch;
  }

}
